package com.exam.classes.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName : Classes
 * @Description : 班级实体
 * @Author : WHB
 */
@Table(name = "exam_classes")
@Data
public class Classes {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tid;
    private String tname;
    private String joinKey;
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date creatTime;
}
